package com.test.serviceImpl;

import com.test.bean.*;
import com.test.bean.ReStudent;
import com.test.bean.Student;
import com.test.bean.User;
import com.test.dao.UserDao;
import com.test.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public User queryForLogin(User user) {
        return userDao.queryForLogin(user);
    }

    @Override
    public void insertUser(User user) {
        userDao.insertUser(user);
    }

    @Override
    public User queryForReg(String username) { return userDao.queryForReg(username); }

    @Override
    public void changePassword(User user) {
        userDao.changePassword(user);
    }

    @Override
    public void addStudent(Student student){
        userDao.addStudent(student);
    }

    @Override
    public void deleteStudent(Student student) {
        userDao.deleteStudent(student);
    }

    @Override
    public void changeStudent(Student student) {
        userDao.changeStudent(student);
    }

    @Override
    public Student queryStudent(int id) {
        return userDao.queryStudent(id);
    }

    @Override
    public List<queryStudent> queryStudent1(int id) {return userDao.queryStudent1(id); }

    @Override
    public List<queryStudent> queryStudents(Student student) {return userDao.queryStudents(student); }


    @Override
    public void addReStudent(ReStudent restudent){
        userDao.addReStudent(restudent);
    }

    @Override
    public List<Student_Reward> queryRestudent1(int id) {
        return userDao.queryRestudent1(id);
    }

    @Override
    public void changeRestudent(ReStudent restudent){
        userDao.changeRestudent(restudent);
    }

    @Override
    public ReStudent queryRestudent(ReStudent restudent) {
        return userDao.queryRestudent(restudent);
    }

    @Override
    public void deleteReStudent(ReStudent restudent) {
        userDao.deleteReStudent(restudent);
    }

    @Override
    public void addRecord(Stu_Record record){userDao.addRecord(record);}

     @Override
    public List<Stu_Record> queryRecord(int id){return userDao.queryRecord(id);}

      @Override
    public Course queryCourse(int course_id){return userDao.queryCourse(course_id);}

    @Override
    public void addCourse(Stu_Course stu_course){userDao.addCourse(stu_course);}

    @Override
    public void  addTalk(Daily_Talk talk){userDao.addTalk(talk);};

    @Override
    public List<Daily_Talk> queryTalk(int id){return userDao.queryTalk(id);}


    @Override
    public void addCheck(Daily_Check check){userDao.addCheck(check);};

    @Override
    public void addDiscipline(Daily_Discipline daily_discipline){userDao.addDiscipline(daily_discipline);};

    @Override
    public List<Daily_Bad> queryDailybad(int id){return userDao.queryDailybad(id);};

    @Override
    public void addDormissue(Daily_Dormissue daily_dormissue){userDao.addDormissue(daily_dormissue);};

    @Override
    public void addEspecial(Daily_especial daily_especial){userDao.addEspecial(daily_especial);};

    @Override
    public void updateEspecial(Daily_especial daily_especial){userDao.updateEspecial(daily_especial);};

    @Override
    public void deleteEspecial(Daily_especial daily_especial){userDao.deleteEspecial(daily_especial);};

    @Override
    public void addBook(Book book){userDao.addBook(book);};

    @Override
    public Book queryBook(int id){return  userDao.queryBook(id);};

    @Override
    public void deleteBook(Book book){userDao.deleteBook(book);};

    @Override
    public void addPartymember(Party_member party_member){userDao.addPartymember(party_member);};

    @Override
    public db_Party_member queryPartymem(int id){return userDao.queryPartymem(id);};

    @Override
    public void deletePartymem(int id){userDao.deletePartymem(id);};

    @Override
    public void addPartybranch(Party_branch party_branch){userDao.addPartybranch(party_branch);};

    @Override
    public Party_branch_db queryPartybranch(String branch_name){return userDao.queryPartybranch(branch_name);};

    @Override
    public void deletePartybranch(String branch_name){userDao.deletePartybranch(branch_name);};

    @Override
    public void  updatePartymem(Party_member party_member){userDao.updatePartymem(party_member);};

    @Override
    public void  updatePartybranch(Party_branch party_branch){userDao.updatePartybranch(party_branch);};

    @Override
    public void addPartyissue(Party_issue party_issue){userDao.addPartyissue(party_issue);};
}

